package com.yuxinmuyu.sports_management.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuxinmuyu.sports_management.bean.entiy.SportsScore;
import com.yuxinmuyu.sports_management.bean.response.GetSportsScoreResponse;

import java.util.Date;

public interface SportsScoreMapper extends BaseMapper<SportsScore> {
    SportsScore getByID(Integer sportsID, String userID,String yearTermID);

    int addSportsScore(String yearTermID, Integer sportsID, String userID, Date lastDate, String operator, String score, boolean awardsFlag, String awardsName);

    Page<GetSportsScoreResponse> selectSportsScore( Page<GetSportsScoreResponse> page,String yearTermID, String keyword,String deptID,Integer sportsID);
}
